package com.junjie.checkin.request.activity;

import com.junjie.checkin.entity.Enum.ActivityStatusEnum;
import com.junjie.checkin.entity.Enum.ActivityTypeEnum;
import lombok.Data;

import java.io.Serializable;
@Data
public class ActivityPageRequest implements Serializable {
    //页码，从1开始
    private Integer page;

    //每页条数
    private Integer pageSize;

    //活动标题，模糊查询
    private String title;

    //活动类型
    private String type;

    //活动状态
    private String status;

    public void initDefaults() {
        if (page == null || page < 1) {
            page = 1;
        }
        if (pageSize == null || pageSize < 1) {
            pageSize = 10;
        }
    }
}
